import { BroadCastCall } from "../../broadCast/BroadCastCall";
import { MessageBlock } from "../../../../../Framework/MQ/MessageBlock";
import { SPetExploreResult } from "../../../../../Message/Public/SPetExploreResult";
import { NetDispatcher } from "../../../../mvc/core/NetDispatcher";
import { ServerCommand } from "../../../mvc/ServerCommand";
import { Dispatcher } from "../../../../mvc/core/Dispatcher";
import { DataEvent } from "../../../events/DataEvent";
import { EventName } from "../../../mvc/EventName";
//class PetExploreResultCommand
    
    export  class PetExploreResultCommand extends BroadCastCall
    {
        constructor(arg1: Object)
        {
            super(arg1);
            return;
        }

        public /* override */ call(arg1: MessageBlock): void
        {
            super.call(arg1);
            var loc1=arg1.messageBase as SPetExploreResult;
            NetDispatcher.dispatchCmd(ServerCommand.PetExploreResultUpdate, loc1);
            Dispatcher.dispatchEvent(new DataEvent(EventName.PetExploreMonsterClean, loc1.isWin));
            return;
        }
    }
